package com.member.server.mapper;

import com.member.server.entity.AccountLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @author gaojx1993
 * @version 1.0
 * @description AccountLogMapper
 * @since 2023/7/11 14:41
 */
@Mapper
public interface AccountLogMapper {

    List<AccountLog> selectByAccountId(@Param("accountId") Long accountId);

    long insertBatch(@Param("entities") Collection<AccountLog> entities);

    List<AccountLog> selectByAccountIds(@Param("accountIds") Collection<Long> accountIds,
                                        @Param("offset") Integer offset, @Param("pageSize") Integer pageSize);
}
